DEFINES += LINUX DEBUG
CONFIG += debug warn_on dll
CONFIG -= x11
TEMPLATE = lib
#QMAKE_CXX=/usr/lib/colorgcc/bin/g++
TARGET = jbk
DESTDIR = bin

QMAKE_CXXFLAGS+=-O3

# making the output pretty
QMAKE_CXX  = @echo -e \"\033[01;31mCompiling \033[01;37m$(<)\033[00m\"; $$QMAKE_CXX
QMAKE_LINK = @echo -e \"\033[01;34mLinking   \033[01;37m$(@)\033[00m\"; $$QMAKE_LINK

#profiling
#QMAKE_CFLAGS+=-pg
#QMAKE_CXXFLAGS+=-pg
#QMAKE_LFLAGS+=-pg

OBJECTS_DIR=tmp/objects

INCLUDEPATH += src

#INCLUDEPATH += \
#	src/ \
#	/usr/local/include/PhysX/SDKs/Cooking/include \
#	/usr/local/include/PhysX/SDKs/Foundation/include \
#	/usr/local/include/PhysX/SDKs/NxCharacter/include \
#	/usr/local/include/PhysX/SDKs/Physics/include \
#	/usr/local/include/PhysX/SDKs/PhysXLoader/include

#LIBS += \
#	-lglut \
#	-lgmpxx \
#	-lm \
#	-lNxCharacter \
#	-lNxCooking \
#	-lPhysXCore \
#	-lPhysXLoader \
#	-lpthread

unix {
	isEmpty(PREFIX) {
		PREFIX=/usr/local
	}

	INCLUDE_DIR = $${PREFIX}/include/jbk
}

#INSTALLS += target

#	INSTALLS += target include_ai_ga include_ai_rbn include_base include_crypto include_graphics include_hardware include_math include_physx include_qt include_stl include_test include_thread include_yaml
#}

target.path  = $${PREFIX}/lib

INSTALLS += target

include(src/src.pri)


#HEADERS += \
#	src/base.h \
#	src/ai/ga/GeneticAlgorithm.h \
#	src/ai/ga/Genome.h \
#	src/ai/ga/Individual.h \
#	src/ai/ga/PetersGA.h \
#	src/ai/ga/PopulationEvaluator.h \
#	src/ai/ga/RbnGenome.h \
#	src/ai/ga/RbnGenomeNode.h \
#	src/ai/ga/ThreadedPopulationEvaluator.h \
#	src/ai/ga/TournamentSelectionGA.h \
#	src/ai/rbn/Rbn.h \
#	src/ai/rbn/RbnNode.h \
#	src/crypto/CryptoInit.h \
#	src/crypto/Hash.h \
#	src/crypto/Md5Hasher.h \
#	src/graphics/GlTools.h \
#	src/graphics/GlutCallbackListener.h \
#	src/graphics/GlutCallbacks.h \
#	src/hardware/HardwareInfo.h \
#	src/math/Math.h \
#	src/math/Random.h \
#	src/math/RealMulti.h \
#	src/physics/physx/DebugTools.h \
#	src/physics/physx/Engine.h \
#	src/physics/physx/OutputStream.h \
#	src/physics/physx/Scene.h \
#	src/qt/AutoLock.h \
#	src/qt/Lockable.h \
#	src/qt/Logger.h \
#	src/qt/QtMutex.h \
#	src/stl/ListTools.h \
#	src/test/UnitTest.h \
#	src/thread/AutoLock.h \
#	src/thread/AutoMutex.h \
#	src/thread/Mutex.h \
#	src/thread/Thread.h \
#	src/yaml/YamlAble.h
#
#SOURCES += \
#	src/ai/ga/Individual.cpp \
#	src/ai/ga/PetersGA.cpp \
#	src/ai/ga/RbnGenome.cpp \
#	src/ai/ga/RbnGenomeNode.cpp \
#	src/ai/ga/ThreadedPopulationEvaluator.cpp \
#	src/ai/ga/TournamentSelectionGA.cpp \
#	src/ai/rbn/Rbn.cpp \
#	src/ai/rbn/RbnNode.cpp \
#	src/crypto/CryptoInit.cpp \
#	src/crypto/Hash.cpp \
#	src/crypto/Md5Hasher.cpp \
#	src/graphics/GlTools.cpp \
#	src/graphics/GlutCallbacks.cpp \
#	src/hardware/HardwareInfo.cpp \
#	src/math/Math.cpp \
#	src/math/Random.cpp \
#	src/math/RealMulti.cpp \
#	src/physics/physx/DebugTools.cpp \
#	src/physics/physx/Engine.cpp \
#	src/physics/physx/OutputStream.cpp \
#	src/physics/physx/Scene.cpp \
#	src/qt/AutoLock.cpp \
#	src/qt/Lockable.cpp \
#	src/qt/Logger.cpp \
#	src/thread/AutoMutex.cpp \
#	src/thread/Mutex.cpp \
#	src/thread/Thread.cpp

